﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Phong_CaiDatGia.ascx.cs" Inherits="QuanLyKhachSan.UC_Phong_CaiDatGia" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .comment-center-col
    {
        background: none repeat scroll 0 0 #FAFAFA;
        border: 1px solid #CFD6E0;
        border-radius: 5px 5px 5px 5px;
        color: #313C46;
        float: left;
        font-size: 1.083em;
        padding: 10px 20px;
        position: relative;
        width: 1000px;
        }
     .comment-nav
     {
        background: none repeat scroll 0 0 #F3F5F9;
        border-bottom: 1px solid #CFD6E0;
        border-radius: 5px 5px 0 0;
        font-size: 0.923em;
        list-style: none outside none;
        margin: -10px -20px 10px;
        padding: 12px 20px 10px;
        width: 100%;
         }
    
</style>
 <!-- Danh sach phong-->
     <style type="text/css">
        .comment-right-col
        {
            background: none repeat scroll 0 0 #FAFAFA;
            border: 1px solid #CFD6E0;
            border-radius: 5px 5px 5px 5px;
            color: #313C46;
            float: left;
            font-size: 1.083em;
            padding: 10px 20px;
            position: relative;
            width: 1000px;
            }
         .comment-nav
         {
            background: none repeat scroll 0 0 #F3F5F9;
            border-bottom: 1px solid #CFD6E0;
            border-radius: 5px 5px 0 0;
            font-size: 0.923em;
            list-style: none outside none;
            margin: -10px -20px 10px;
            padding: 12px 20px 10px;
            width: 100%;
             }
        .rp {
            float: left;
            font-weight: 900;
            margin-right: 20px;
            padding-bottom: 10px;
            width: 80px;
        }
    </style>    
<asp:UpdatePanel ID="UpnlCaiDatGia" runat="server">
    <ContentTemplate>
<table width="100%">
    <tr>
        <td>
            <div class="comment-right-col">
                <span class="comment-tail"></span>
                <ul class="comment-nav">                               
                    <li style="text-align:left;font-weight:bold;font-family:Tahoma;font-size:12px">Danh sách phòng</li>
                </ul>
                <asp:DataList ID="dlPhong" runat="server" RepeatColumns="8" RepeatDirection="Horizontal" Width="100%">
                    <ItemTemplate>
                        <div class="rp">
                            <asp:CheckBox ID="cbxCheck" runat="server" />
                            <asp:HiddenField ID="hfPhongID" runat="server" Value='<%#Eval("PhongID")%>' />
                            <label style="font-size:16px;font-family:Tahoma" ><%#Eval("PhongName")%></label>
                            <asp:LinkButton ID="cmdXem" runat="server" Text="[xem]" CommandArgument='<%#Eval("PhongID")%>' 
                                style=" font-weight:normal;font-size:12px;font-family:Tahoma;text-decoration:none;color:Black" 
                                onclick="cmdXem_Click"></asp:LinkButton>
                            <asp:LinkButton ID="cmdSua" runat="server" Text="[sửa]" CommandArgument='<%#Eval("PhongID")%>'
                                style=" font-weight:normal;font-size:12px;font-family:Tahoma;text-decoration:none;color:Black"
                                onclick="cmdSua_Click"></asp:LinkButton>
                            </div>                
                    </ItemTemplate>
                 </asp:DataList>
            </div>
     <!-- -->
         </td>
    </tr>
 <tr>
    <td>
     <table width="100%">    
        <tr>
            <td>
             <div class="comment-center-col">
            <span class="comment-tail"></span>
            <ul class="comment-nav">                               
                <li style="text-align:left;font-weight:bold;font-family:Tahoma;font-size:12px">Cài đặt giá</li>
            </ul>                  
            <table width="900">
                <tr>
                    <td valign="top">
                                <table width="200">                                
                                    <tr>                                        
                                        <td>
                                            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Width="250" 
                                                Skin="Web20">
                                                <Tabs>
                                                    <telerik:RadTab Text="Theo giờ" Width="200" Font-Bold="true">
                                                    </telerik:RadTab>
                                                </Tabs>
                                            </telerik:RadTabStrip>        
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DataList ID="lstGiaTheoGio" runat="server" Width="250">
                                                <ItemTemplate>
                                                    <table width="200">
                                                        <tr>
                                                            <td style=" width:40px;display:none">
                                                                <asp:TextBox ID="txtGio_PhongID" runat="server" Text='<%#Eval("Gio_PhongID")%>' Width="20"></asp:TextBox>
                                                            </td>
                                                            <td style=" width:40px">
                                                                <asp:TextBox ID="txtGioPhongName" runat="server" Text='<%#Eval("GioPhongName")%>' Width="20"></asp:TextBox>
                                                            </td>                                                        
                                                            <td  style=" font-family:Tahoma;font-size:12px">
                                                                Giờ                                                           
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtGia" runat="server" Text='<%#Format_NumberVietnamese(Eval("GiaTien").ToString())%>' Width="70"></asp:TextBox>
                                                            </td>
                                                            <td style=" font-family:Tahoma;font-size:12px">
                                                                VND
                                                            </td>
                                                            <td style=" width:20px">
                                                                <asp:ImageButton ID="cmdAdd" runat="server" CommandArgument='<%#Eval("Gio_PhongID")%>' ImageUrl='<%#Eval("ImageUrl")%>' onclick="cmdAdd_Click" />                                                         
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:DataList>                                            
                                        </td>
                                    </tr>
                                </table>                      
                    </td>
                    <td valign="top">
                                <table width="150">                                
                                    <tr>                                        
                                        <td>
                                            <telerik:RadTabStrip ID="RadTabStrip2" runat="server" Width="250" 
                                                Skin="Web20">
                                                <Tabs>
                                                    <telerik:RadTab Text="Theo ngày" Width="150" Font-Bold="true">
                                                    </telerik:RadTab>
                                                </Tabs>
                                            </telerik:RadTabStrip>        
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:Label ID="lblTheoNgay" runat="server" Text="Theo ngày" style=" font-family:Tahoma;font-size:12px"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtTheoNgay" runat="server" Width="100"></asp:TextBox>
                                                    </td>
                                                    <td style=" font-family:Tahoma;font-size:12px">
                                                        (VND)
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td  colspan="2">
                                                        <asp:Label ID="lblTheoTuan" runat="server" Text="Theo tuần" style=" font-family:Tahoma;font-size:12px"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtTheoTuan" runat="server"  Width="100" style=" font-family:Tahoma;font-size:12px"></asp:TextBox>
                                                    </td>
                                                    <td style=" font-family:Tahoma;font-size:12px">
                                                        (VND)
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td  colspan="2">
                                                        <asp:Label ID="lblTheoThang" runat="server" Text="Theo tháng" style=" font-family:Tahoma;font-size:12px"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtTheoThang" runat="server"  Width="100"></asp:TextBox>
                                                    </td>
                                                    <td style=" font-family:Tahoma;font-size:12px">
                                                        (VND)
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                    </td>
                    <td valign="top">
                                <table width="480">                                
                                    <tr>                                        
                                        <td>
                                            <telerik:RadTabStrip ID="RadTabStrip3" runat="server" Width="480" 
                                                Skin="Web20">
                                                <Tabs>
                                                    <telerik:RadTab Text="Theo số người" Width="480" Font-Bold="true">
                                                    </telerik:RadTab>
                                                </Tabs>
                                            </telerik:RadTabStrip>        
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DataList ID="lstNguoiPhong" runat="server" Width="250">
                                                <ItemTemplate>
                                                    <table width="480">
                                                        <tr>
                                                            <td style=" width:40px;display:none">
                                                                <asp:TextBox ID="txtNguoi_PhongID" runat="server" Text='<%#Eval("Nguoi_PhongID")%>' Width="20"></asp:TextBox>
                                                            </td>                                                                                                                
                                                            <td style=" font-family:Tahoma;font-size:12px">
                                                                Thêm
                                                            </td>
                                                            <td style=" width:40px">
                                                                <asp:TextBox ID="txtThem" runat="server" Text='<%#Eval("NguoiPhongName")%>' Width="40"></asp:TextBox>
                                                            </td>
                                                            <td style=" font-family:Tahoma;font-size:12px">
                                                                người, cộng
                                                            </td>
                                                            <td style=" width:100px">
                                                                <asp:TextBox ID="txtCong" runat="server" Text='<%#Format_NumberVietnamese(Eval("CongThem").ToString())%>' Width="100"></asp:TextBox>
                                                            </td>
                                                            <td style=" font-family:Tahoma;font-size:12px">
                                                                VND(%)/người
                                                            </td>
                                                            <td style=" width:20px">
                                                                <asp:ImageButton ID="cmdAddNguoiPhong" runat="server" CommandArgument='<%#Eval("Nguoi_PhongID")%>' ImageUrl='<%#Eval("ImageUrl")%>' onclick="cmdAddNguoiPhong_Click"  />                                                         
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:DataList>                                               
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="500">
                                                <tr>                                                                                                                
                                                    <td  style=" font-family:Tahoma;font-size:12px;width:200">
                                                        Cộng thêm                                                          
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtCongThem" runat="server" Text="" Width="100"></asp:TextBox>
                                                    </td>
                                                    <td style=" font-family:Tahoma;font-size:12px">
                                                        VND(%)/người cho những người tiếp theo
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="3">
                        <telerik:RadButton ID="cmdCapNhat" runat="server" Visible="false"
                            Text="Cập nhật các phòng đã chọn" Height="30px" Skin="Web20" 
                            onclick="cmdCapNhat_Click" style="margin-right:50px">
                        </telerik:RadButton>
                        <br />
                    </td>
                </tr>
            </table>
            </div>
            </td>
        </tr>
     </table>      
    </ContentTemplate>
</asp:UpdatePanel>